<%@ page contentType="text/html; charset=utf-8" %>
<%@ include file="/WEB-INF/jsp/includeTaglib.jsp" %>
<table class="dbborder" width="100%" border="0" cellpadding="0" cellspacing="1">
	<tr class="rowHead">
		<td height="20" nowrap align="center" class="globalTextBold">姓名</td>
		<td height="20" nowrap align="center" class="globalTextBold">身份证号</td>
		<td height="20" nowrap align="center" class="globalTextBold">操作</td>
	</tr>
	<c:forEach var="projectSalesPromoter" items="${page.data}" varStatus="status">
		<tr class="rowClass">
			<td height="20" class="globalText">${projectSalesPromoter.salesPromoter.name}</td>
			<td height="20" class="globalText">${projectSalesPromoter.salesPromoter.idCardNo}</td>
			<td height="20" class="globalText">
				<input type="button" class="btnStyle" value="删除" onclick="javascript:delSalesPromoter('${projectSalesPromoter.id}')">
			</td>
		</tr>
	</c:forEach>
</table>

<%@ include file="/WEB-INF/jsp/includePagination.jsp"%>

<form method="post" target="tempFrame" id="delSalesPromoterForm" action="<c:url value="/project/delSalesPromoter.html" ></c:url>">
	<input type="hidden" name="salesPromoterId" id="projectSalesPromoter" />
</form>

<script>
	function delSalesPromoter(id){
		if(!confirm('确认删除?'))
			return;
		$("#projectSalesPromoter").val(id);
		$("#delSalesPromoterForm").submit();
	}
	
	function submitCallbackSuccess(obj){
		listDefaultPageAjax('salesPromoterListData','salesPromoterListForm','<c:url value="/project/projectSalesPromoterList.html" />');
	}
	function submitCallbackFailed(obj){
		listDefaultPageAjax('salesPromoterListData','salesPromoterListForm','<c:url value="/project/projectSalesPromoterList.html" />');
	}
</script>